import React from 'react';

const ListItem = ({text,complete,onClick}) => {
    return (
        <li onClick={onClick} style={{textDecoration:complete&&'line-through'}}>
          {text}  
        </li>
    );
}

export default ListItem;
